﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cartoon.Config;

namespace Cartoon.Logic
{
    public class SettingService
    {
        ConfigForCartoon configForCartoon;

        public SettingService()
        {
            configForCartoon = ConfigForCartoon.CreateInstance();
        }

        public void SetSavePath(string savepath)
        {
            if (string.IsNullOrEmpty(savepath) == true) return;

            if (savepath.EndsWith("\\") == false) savepath += "\\";

            configForCartoon.SavePath = savepath;
        }
    }
}
